import 'dart:async';

import 'package:flutter/material.dart';
import 'package:bip39/bip39.dart' as bip39;
import 'package:itoken/Components/CRouter.dart';
import 'package:webview_flutter/webview_flutter.dart';

class PWebView extends StatelessWidget {
  PWebView();
  final Completer<WebViewController> _controller =
      Completer<WebViewController>();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("助记词展示"),
      ),
      body: Builder(builder: (BuildContext context) {
        return WebView(
          initialUrl: 'http://47.108.81.109:8801/',
          javascriptMode: JavascriptMode.unrestricted,
          onWebViewCreated: (WebViewController webViewController) {
            _controller.complete(webViewController);
          },
          gestureNavigationEnabled: true,
        );
      }),
    );
  }
}
